package com.yunhe.inspect.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: RectificationSheet
 * @Description:
 * @author: GongDaCheng
 * @Date: 9:09 2021/11/15
 */
@Data
@ApiModel("整改单")
public class RectificationSheet implements Serializable {

    private static final long serialVersionUID = 8088365913238457517L;

    /**
     * 整改单id
     */
    @ApiModelProperty("整改单id")
    private Long id;

    /**
     * 巡检单id
     */
    @ApiModelProperty("巡检单id")
    private Integer inspectOrderId;

    /**
     * 安全隐患
     */
    @ApiModelProperty("安全隐患")
    private String hiddenDanger;

    /**
     * 整改截止日期
     */
    @ApiModelProperty("整改截止日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rectificationDeadline;

    /**
     * 整改内容
     */
    @ApiModelProperty("整改内容")
    private String rectificationContent;

    /**
     * 整改图片
     */
    @ApiModelProperty("整改图片")
    private String images;

    /**
     * 整改单创建时间
     */
    @ApiModelProperty("整改单创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /******************zb********************/

    /**
     * 整改单期限 0正常 1即将到期 2已超时
     */
    @ApiModelProperty("整改单期限 0正常 1即将到期 2已超时")
    private String deadlineStatus;
}
